package com.cfswt.tasksystem.pojo.entity;

import com.cfswt.tasksystem.pojo.dto.ToolOrderItemDTO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
public class ToolOrder {
    private Integer id;
    private String sn;
    private String orderType;
    private String processInstanceId;
    private String companyName;
    private String contactsName;
    private String contactsDuties;
    private String contactsMobile;
    private String cargoReceiver;
    private String cargoReceiverMobile;
    private String address;
    private Integer quantity;
    private Double amountMoney;
    private String status;
    private String createBy;
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private ToolAttachment contract;
    private Double payment;
    private Double invoice;
    private List<ToolOrderItemDTO> toolOrderItemDTOS; // 订单项列表,不映射表
}
